package com.weiweiqin.dao.impl;

import com.weiweiqin.dao.CustomerFavItemDao;
import com.weiweiqin.model.CustomerFavItem;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.Map;

@Repository
public class CustomerFavItemDaoImpl extends GenericMybatisDao<CustomerFavItem, Integer>
		implements CustomerFavItemDao {

	public CustomerFavItem getByGoodsIdAndCustomerId(int customerId, int goodsId) {
		Map<String,Object> mp = new HashMap<String,Object>();
		mp.put("goodsId",goodsId);
		mp.put("customerId",customerId);
		return (CustomerFavItem) getSqlSession().selectOne("CustomerFavItem_getByGoodsIdAndCustomerId",mp);
	}
}